package seller;

public class MultiSeller {
	
	private static Ticket[] pool;
	
	public static void initPool(){
		pool=new Ticket[100];
		for (int i = 0; i < pool.length; i++) {
			Ticket ticket=new Ticket();
			ticket.setNumber(i);
			pool[i]=ticket;
		}
	}
	public static void main(String[] args) {
		initPool();
		new Thread(new Seller(pool)).start();
		new Thread(new Seller(pool)).start();
		new Thread(new Seller(pool)).start();
		new Thread(new Seller(pool)).start();
		new Thread(new Seller(pool)).start();
		
	}
}

